package se581.banker.manager;

import java.io.Serializable;

/**
 * Represents a client account transaction as a 
 * time (i.e. tick) and amount
 * 
 * @author mmichalak
 *
 */
public class AccountTransaction implements Cloneable, Serializable{

	private static final long serialVersionUID = -9162537387828574100L;

	int tick;
	int transactionAmt;
	
	public int getTransactionAmt() {
		return transactionAmt;
	}
	public void setTransactionAmt(int xCoord) {
		this.transactionAmt = xCoord;
	}
	public int getTick() {
		return tick;
	}
	public void setTick(int tick) {
		this.tick = tick;
	}
	
	@Override
	protected Object clone() throws CloneNotSupportedException {
		AccountTransaction loc = (AccountTransaction)super.clone();
		loc.setTick(this.tick);
		loc.setTransactionAmt(this.transactionAmt);
		
		return loc;
	}
	
	@Override
	public String toString() {
		return "AccountTransaction [tick=" + tick + ", transactionAmt=" + transactionAmt + "]";
	}
	
	
}
